const sequelize = require('sequelize');

module.exports = app => {
    const { STRING, INTEGER } = app.Sequelize;

    const User = app.model.define('theme', {
        id: { type: sequelize.INTEGER, primaryKey: true, autoIncrement: true },

        themeName: STRING(1234),
        themeId: {
            type: INTEGER,
            allowNull: false,
        },
        status: {
            type: INTEGER, // 0-资源分类 1-标签
            defaultValue: 0
        },
        content: {
            type: STRING(2048),
            allowNull: false,
        }
    });
    return User;
};